package com.app.oasystem.dto;

import java.util.Map;

/**
 * @author zhangbaobing
 * @Description TODO
 * @data 2021/04/28
 */
public class InternalActionResult {
    private boolean success;
    private String code;
    private String msg;
    private Map<String, Object> obj;

    public InternalActionResult() {
        this.success = true;
        this.msg = "SUCESS";
    }

    public InternalActionResult(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public InternalActionResult(boolean success, String msg, Map<String, Object> obj) {
        this.success = success;
        this.msg = msg;
        this.obj = obj;
    }

    public InternalActionResult(Map<String, Object> obj) {
        this.success = true;
        this.msg = "SUCESS";
        this.obj = obj;
    }

    public boolean getSuccess() {
        return this.success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Map<String, Object> getObj() {
        return this.obj;
    }

    public void setObj(Map<String, Object> obj) {
        this.obj = obj;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
